// s5_ie6.js is copyrighted material by Shape5.com 2007 - current

// Title: Shape 5 IE6 Warning - Joomla 1.5
// URL: http://www.shape5.com
// Date: 07/07/2009
// Notes: This script is copyrighted material of shape5.com and may not be redistributed or resold by any means.

var my_div = null;
var newDiv = null;

function s5_addIE6close() {
	document.getElementById("s5_iepopouter").style.display = 'none';
	document.getElementById("s5_iepopinner").style.display = 'none';}

function s5_addIE6Element()
{ newDiv = document.createElement("div");
  newDiv.innerHTML = " " +  
  "<div id='s5_iepopouter' style='position:absolute;top:0px;z-index:998;background:#000000;filter: alpha(opacity = 50);width:100%;height:1200px;'></div>" +
  "<div id='s5_iepopinner' style='padding-top:34px;border:1px solid #ffffff;position:absolute;z-index:999;background:#ffffff url(plugins/system/iewarning/images/gradient.jpg) bottom repeat-x;width:345px;height:300px;left:50%;margin-left:-172px;top:200px;'> " +
	  "<div style='cursor:pointer;margin-right:5px;margin-top:-19px;margin-bottom:0px;float:right;background:#ffffff url(plugins/system/iewarning/images/close.jpg) no-repeat;width:24px;height:24px;' onclick='s5_addIE6close();'></div><div style='clear:both;height:0px;'>" +
	  "<div style='margin-left:5px;margin-top:3px;margin-bottom:15px;float:left;background:#ffffff url(plugins/system/iewarning/images/ie.jpg) no-repeat;width:59px;height:57px;'></div><div style='margin-top:6px;margin-bottom:15px;float:left;padding-left:5px;font-size:18px;color:#000000;'>You are using Internet Explorer 6.0 or older to view the web.</div>"  +
		"<div style='clear:both;'></div><div style='margin-top:-10px;margin-left:20px;width:87%;color:#000000;margin-bottom:33px;'>Due to security risks and a lack of support for web standards this website does not support IE6. Internet Explorer 6 was released in 2001 and it does not display modern web sites properly.  Please upgrade to a newer browser to fully enjoy this site and the rest of the web. <br/><br/>After you update, please come back and you will be able to view our site.</div>" +
		"<a href='http://www.microsoft.com/windows/internet-explorer/' target='_blank'><center><div style='cursor:pointer;background: url(plugins/system/iewarning/images/button.jpg) no-repeat;width:142px;height:34px;line-height:30px;'><span style='font-size:18px;color:#2f82ff;'>Upgrade</span></div></center></a>" +
  "</div>" ;
  
  my_div = document.getElementById("org_div1");
  document.body.insertBefore(newDiv, my_div);
}
window.setTimeout('s5_addIE6Element()',4000);